From: Anderson McKinley <78775943+ajmckinley@users.noreply.github.com> Date: Wed, 26 May 2021 06:41:49 +0000 (+0000) Subject: luci-app-statistics: fix read of hostname X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=54b2195dcf4903c65f0b2cbf9a520b8c0c11967c;p=project%2Fluci.git luci-app-statistics: fix read of hostname Existing javascript did not read a non-default statistics hostname due to incorrect config ids. Signed-off-by: Anderson McKinley (cherry picked from commit 97424d57af1d0e02ea914012c47987541d7ee6a6) --- diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/collectd.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/collectd.js index 282b867c4d..6c2d5ffa46 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/collectd.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/collectd.js @@ -52,7 +52,7 @@ return view.extend({ o.load = function() { return fs.trimmed('/proc/sys/kernel/hostname').then(L.bind(function(name) { this.placeholder = name; - return uci.get('collectd', 'statistics', 'hostname'); + return uci.get('luci_statistics', 'collectd', 'Hostname'); }, this)); };